package design.pattern.basic.ABSTRACT;

public class Student {

	private String name;
	private int point;
	private School school;
	
	public void setName(String name){
		this.name = name;
	}
	
	public void setPoint(int point){
		this.point = point;
	}
	
	public void setUninersity(School school){
		this.school = school;
	}
	
	public String getName(){
		return name;
	}
	
	public int getPoint(){
		return point;
	}
	
	public School getUniversity(){
		return school;
	}
	
	public void displayPoint(){
		System.out.println("Name: " + name + " gets " + school.calculatePoint(point));
		school.displayNote();
	}
	
	public static void main(String[] args){
		Student st = new Student();
		st.setName("Hai");
		st.setPoint(90);
		st.setUninersity(new SchoolA());
		st.displayPoint();
	}
}
